package ooday02;

/**
 * @author Huangjin
 * @version 1.0
 * describe:
 * @date 2023/2/22 10:13
 */
public class ExtendsTest {
    public static void main(String[] args) {
        Student zs = new Student( "易洪彪", 18, "河北", " jsd2212", "001");
        zs.sayHi();zs.eat();
        zs.sleep();
        zs.study();
        Teacher teacher = new Teacher("刘家祥",
        3,
        "北京中关村",
        30000);
        teacher.sayHi();
        teacher.teach();
        teacher.eat();
        teacher.sleep();
        Doctor doctor = new Doctor("靡磊",
        19,
        "贵阳市",
        "神医");
        doctor.sayHi();
        doctor.eat();
        doctor.cut();
        doctor.sleep();

    }
}
